<html>
<head>
<title>First Modal</title>
<script>
  function openModal() {
    window.showModalDialog("modal_2.html",'dialogWidth:250px;dialogHeight:200px;resizable:yes')
  }
</script>
</head>
 
<body>
<p>Modal dialog sample</p>

<input type="button" value="btn2" onclick="openModal();">

<a id="lnk2" href="javascript:openModal()">lnk2</a>
<div>

</div>
</body>
</html>